9c14fc6da7155d89894f39aadfba19a0dbb4038b,src/main/java/com/github/games647/flexiblelogin/ProtectionManager.java,ProtectionManager,protect,#Player#,41
Before Change
Location<World> oldLoc = player.getLocation();
//sometimes players stuck in a wall
plugin.getGame().getTeleportHelper().getSafeLocation(oldLoc).ifPresent(player::setLocation);
}
}
After Change
Location<World> oldLoc = player.getLocation();
//sometimes players stuck in a wall
if (plugin.getConfigManager().getConfig().isSafeLocation()) {
plugin.getGame().getTeleportHelper().getSafeLocation(oldLoc).ifPresent(player::setLocation);
} else {
player.setLocation(oldLoc);
}
}
}